/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const alarmInfoRouter = {
  path: '/alarmInfo',
  component: Layout,
  redirect: '/alarmInfo/historyAlarm',
  name: 'AlarmInfo',
  meta: {
    title: 'alarmInfo',
    icon: 'task',
    roles: ['admin'] 
  },
  children: [
    {
      path: 'historyAlarm',
      component: () => import('@/views/alarmInfo/historyAlarm/index'),
      name: 'HistoryAlarm',
      meta: { 
        title: 'historyAlarm',
        icon: 'table',
        roles: ['admin'] 
      }
    }
  ]
}

export default alarmInfoRouter
